package com.ruoyi.business.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 合同开票对象 bus_contract_invoice
 * 
 * @author ruoyi
 * @date 2021-09-02
 */
public class BusContractInvoice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 开票id */
    private Long invoiceId;

    /** 合同id */
    private Long contractId;

    /** 开票内容 */
    @Excel(name = "开票内容",sort = 1)
    private String invoiceContent;

    /** 发票号码 */
    @Excel(name = "发票号码",sort = 2)
    private String invoiceNo;

    /** 开票金额 */
    @Excel(name = "开票金额",sort = 3,cellType = Excel.ColumnType.NUMERIC)
    private BigDecimal invoiceSum;

    /** 开票人 */
    @Excel(name = "开票人",sort = 4)
    private String invoiceUser;

    /** 开票日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开票日期", width = 30, dateFormat = "yyyy-MM-dd",sort = 5)
    private Date invoiceDate;

    public void setInvoiceId(Long invoiceId) 
    {
        this.invoiceId = invoiceId;
    }

    public Long getInvoiceId() 
    {
        return invoiceId;
    }
    public void setContractId(Long contractId) 
    {
        this.contractId = contractId;
    }

    public Long getContractId() 
    {
        return contractId;
    }
    public void setInvoiceContent(String invoiceContent) 
    {
        this.invoiceContent = invoiceContent;
    }

    public String getInvoiceContent() 
    {
        return invoiceContent;
    }
    public void setInvoiceNo(String invoiceNo) 
    {
        this.invoiceNo = invoiceNo;
    }

    public String getInvoiceNo() 
    {
        return invoiceNo;
    }
    public void setInvoiceSum(BigDecimal invoiceSum) 
    {
        this.invoiceSum = invoiceSum;
    }

    public BigDecimal getInvoiceSum() 
    {
        return invoiceSum;
    }
    public void setInvoiceUser(String invoiceUser) 
    {
        this.invoiceUser = invoiceUser;
    }

    public String getInvoiceUser() 
    {
        return invoiceUser;
    }
    public void setInvoiceDate(Date invoiceDate) 
    {
        this.invoiceDate = invoiceDate;
    }

    public Date getInvoiceDate() 
    {
        return invoiceDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("invoiceId", getInvoiceId())
            .append("contractId", getContractId())
            .append("invoiceContent", getInvoiceContent())
            .append("invoiceNo", getInvoiceNo())
            .append("invoiceSum", getInvoiceSum())
            .append("invoiceUser", getInvoiceUser())
            .append("invoiceDate", getInvoiceDate())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
